<template>
    <div class="login-container">
        <div class="login">
            <h3>WMS仓储管理系统</h3>
            <div class="ipt">
                <img src="https://cdn7.axureshop.com/demo2024/2318838/images/%E7%99%BB%E5%BD%95/u10944.svg" alt="">
                <input type="text" placeholder="请输入用户名" />
            </div>
            <div class="ipt">
                <img src="https://cdn7.axureshop.com/demo2024/2318838/images/%E7%99%BB%E5%BD%95/u10945.svg" alt="">
                <input type="password" placeholder="请输入密码" />
            </div>
            <button @click="toindex">登录</button>
        </div>
    </div>
</template>

<script>
export default {
    methods:{
        toindex(){
            this.$router.push('/index');
        }
    }
};
</script>

<style scoped>
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
.login-container {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    /* width: 100%;
    height: 100vh; */
    background-color: #f5f5f5;
    margin-top: 0;
}
/* html {
    background-color: red;
 } */
.login {
    text-align: center;
    /* margin: 40px auto 0; */
    width: 430px;
    height: 520px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    padding: 60px 0 0 0;
    position: absolute;
    left: 50% !important;
    top: 50% !important;
    transform: translate(78%, 5%);
}
h3 {
    font-size: 20px;
    color: #333;
    margin: 0 0 60px 0;
}
.ipt{
    position: relative;
}
.ipt img {
    position: absolute;
    left: 53px;
    top: 13px;
}
input {
    width: 350px;
    height: 45px;
    box-sizing: border-box;
    padding: 2px 2px 2px 40px;
    color: #cccccc;
    border: 1px solid #e4e4e4;
    border-radius: 5px;
    margin-bottom: 30px;
    outline: none;
}
button {
    background-color: rgba(42, 111, 246, 1);
    width: 350px;
    height: 45px;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}
</style>